package com.cqie.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author 小飞
 * @since 2024-04-16
 */
@Getter
@Setter
@TableName("book_info")
@ApiModel(value = "BookInfo对象", description = "")
public class BookInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("书的id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("书名")
    @TableField("book_name")
    private String bookName;

    @ApiModelProperty("库存")
    @TableField("book_number")
    private Integer bookNumber;

    @ApiModelProperty("书本描述")
    @TableField("book_desc")
    private String bookDesc;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty("逻辑删除(0-未删除,1-删除)")
    @TableLogic(value = "0", delval = "1")
    private Integer delFlag;


}
